package net.sxnic.ugr.permission.action;
import net.sxnic.ugr.permission.Permission;

@SuppressWarnings("serial")
public class Edit extends PermissionAction {

	public String execute() throws Exception {

		try {
			checkRoles(Permission.SYSTEM_ADMIN);

			resList = resourceManager.getAll();

			permission = authorizationManager.getPermissionById(id);
			// 初始化菜单多选框
			// menuHtml =
			// PermissionUtils.createCheckboxMenuHtml(permission.getMenus(),
			// authorizationManager.getMenus(), "menu");

		} catch (Exception e) {
			e.printStackTrace();
		}

		return SUCCESS;
	}

    
}
